function selectoption() {
	var country = document.BroadcastForm.country.value;
	if (country == "none")
		document.BroadcastForm.data_choice.style.display = '';
	else
		document.BroadcastForm.data_choice.style.display = 'none';
}

function choiceValidation() {
	var geography = document.BroadcastForm.geographic_region.value;
	var data_choice = document.BroadcastForm.data_choice.value;
	var country = document.BroadcastForm.country.value;
	if (geography == "") {
		document.getElementById("id1").innerHTML = "Please select Geographic Region.";
		return false;
	}
	if (geography != "" && country == "none" && data_choice == "none") {
		document.getElementById("id1").innerHTML = "Please select Radio Data.";
		return false;
	}

	else {
		document.getElementById("id1").innerHTML = "Select Geographic Region and Radio Data for viewing data for the whole region.";
	}

}
function addDigitalValidation() {
	var geography = document.BroadcastForm.geographic_region.value;
	var country = document.BroadcastForm.country.value;
	var analog_radio = document.BroadcastForm.analog_radio.value;
	var digitization_status = document.BroadcastForm.digitization_status.value;
	var digital_radio_family = document.BroadcastForm.digital_radio_family.value;
	var standard = document.BroadcastForm.standard.value;
	var transmission_status = document.BroadcastForm.transmission_status.value;

	if (geography == "") {
		document.getElementById("id1").innerHTML = "Please select Geographic Region";
		return false;
	}

	else {
		document.getElementById("id1").innerHTML = "";
	}
	if (country == "") {
		document.getElementById("id1").innerHTML = "Please select country.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (analog_radio == "") {
		document.getElementById("id1").innerHTML = "Please select Analog Radio.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (digitization_status == "") {
		document.getElementById("id1").innerHTML = "Please select Digitization Status.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (digital_radio_family == "") {
		document.getElementById("id1").innerHTML = "Please select Digital Radio Family.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (standard == "") {
		document.getElementById("id1").innerHTML = "Please select Standard.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (transmission_status == "") {
		document.getElementById("id1").innerHTML = "Please select Transmission Status.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
}
function addAnalogValidation() {
	var geography = document.BroadcastForm.geographic_region.value;
	var country = document.BroadcastForm.country.value;
	var am = document.BroadcastForm.am.value;
	var fm = document.BroadcastForm.fm.value;

	if (geography == "") {
		document.getElementById("id1").innerHTML = "Please select Geographic Region";
		return false;
	}

	else {
		document.getElementById("id1").innerHTML = "";
	}
	if (country == "") {
		document.getElementById("id1").innerHTML = "Please select country.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (am == "") {
		document.getElementById("id1").innerHTML = "Please provide AM.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (fm == "") {
		document.getElementById("id1").innerHTML = "Please provide FM.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
}
function updateDigitalValidation() {
	var analog_radio = document.BroadcastForm.analog_radio.value;
	var digitization_status = document.BroadcastForm.digitization_status.value;
	var digital_radio_family = document.BroadcastForm.digital_radio_family.value;
	var standard = document.BroadcastForm.standard.value;
	var transmission_status = document.BroadcastForm.transmission_status.value;

	if (analog_radio == "") {
		document.getElementById("id1").innerHTML = "Please select Analog Radio.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (digitization_status == "") {
		document.getElementById("id1").innerHTML = "Please select Digitization Status.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (digital_radio_family == "") {
		document.getElementById("id1").innerHTML = "Please select Digital Radio Family.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (standard == "") {
		document.getElementById("id1").innerHTML = "Please select Standard.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (transmission_status == "") {
		document.getElementById("id1").innerHTML = "Please select Transmission Status.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
}
function updateAnalogValidation() {
	var am = document.BroadcastForm.am.value;
	var fm = document.BroadcastForm.fm.value;

	if (am == "") {
		document.getElementById("id1").innerHTML = "Please provide AM.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
	if (fm == "") {
		document.getElementById("id1").innerHTML = "Please provide FM.";
		return false;
	} else {
		document.getElementById("id1").innerHTML = "";
	}
}